package com.mapgoo.implicitTest

/**
  *
  * @author eureka.wh
  * @since 2019-05-31 11:06
  */
// 上下文界定中的隐式参数
object ParamDemo03 {

  def main(args: Array[String]): Unit = {

    println(new Pair_Implicity_Ordereded[Int](7,9).bigger)
  }
}

class Pair_Implicity_Ordereded[T: Ordering](val first: T,val second: T){
  def bigger = {
    import Ordered._
    if (first > second) first else second
  }
}



